<?php
	class Autorization
	{
		public static function isAuth()
		{
			$res = Cookie::Exists("auth");
			return !empty($res);
		}
		public static function setName($login)
		{
			Cookie::Set('auth',true, Cookie::OneDay);
			Cookie::Set('name',$login, Cookie::OneDay);
		}
		public static function getName()
		{
			return Cookie::Get("name");
		}
		public static function toExit()
		{
			Cookie::Delete("auth");
			Cookie::Delete("name");
		}
	}
?>